#ifndef SCREENS_H
#define SCREENS_H

#include <phonon>
#include <QUrl>
#include <QDebug>
#include <iostream>
#include <fstream>
#include <QTimer>

class screens : public Phonon::VideoWidget
{
    Q_OBJECT

private:
    QWidget * parent;
    QUrl fileLocation;
    Phonon::Path path;
    Phonon::MediaObject *mediaObject;
public:
    explicit screens(QWidget *parent = 0, QUrl f = QUrl(" "));
    ~screens();

    void playMedia();
    void pauseMedia();
    void stopMedia();
    void syncMedia();
    void setMediaObject(QUrl);

    virtual void keyPressEvent(QKeyEvent *);

private slots:
    void restartVideo();
};

#endif // SCREENS_H
